import request from '../axios'

/**
 * 查询订单是否支付成功
 */
export function searchorder(data) {
    return request({
        url: 'userpay/searchorder',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 充值
 */
export function create_recharge(data) {
    return request({
        url: 'userpay/create_recharge',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 查询订单是否成功
 */
export function uniwebpayQuery(data) {
    return request({
        url: 'userpay/uniwebpayQuery',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 支付1元绑定银行卡
 */
export function bind_user_bank_pay(data) {
    return request({
        url: 'userpay/bind_user_bank_pay',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * paynow 支付
 */
export function qrcode_recharge_paynow(data) {
    return request({
        url: 'userpay/qrcode_recharge_paynow',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * paynow 支付
 */
export function wechat_recharge(data) {
    return request({
        url: 'userpay/wechat_recharge',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}
